package com.enjoyor.soa.traffic.core.efoms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.enjoyor.soa.traffic.core.efoms.constant.DeviceFaultCollectInfoSqlId;
import com.enjoyor.soa.traffic.core.efoms.domain.DeviceFaultCollectInfo;
import com.enjoyor.soa.traffic.core.efoms.mapper.IDeviceFaultCollectInfoMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;

@Component
public class DeviceFaultCollectInfoMapper extends BaseMapper<DeviceFaultCollectInfo> implements IDeviceFaultCollectInfoMapper{
	
	/**
	 * 获取设备故障数量；
	 */
	@Override
	public List<DeviceFaultCollectInfo> selectDeviceFaultCollectInfoList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(DeviceFaultCollectInfoSqlId.SQL_SELECT_LIST),map);	
	}

	/**
	 * 获取设备故障数量；
	 */
	@Override
	public List<DeviceFaultCollectInfo> selectDeviceFaultCollectByDevTypeCode(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(DeviceFaultCollectInfoSqlId.SQL_SELECT_BY_TYPECODE),map);
	}

	@Override
	public List<DeviceFaultCollectInfo> selectDevFaColGroupByDepId(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(DeviceFaultCollectInfoSqlId.SQL_SELECT_GROUPBY_DEPID),map);
	}

}
